import request from '@/utils/request'

export function getUserList(params) {
  return request({
    url: '/vue-admin-template/user/list',
    method: 'get',
    params
  })
}

export const userDel = (id) => {
  return request({
    url: `/vue-admin-template/user/del`,
    method: 'delete',
    params: { id }
  })
}
export const userAdd = (data) => {
  return request({
    url: `/vue-admin-template/user/add`,
    method: 'post',
    data
  })
}
